package com.cakeclient.Model;

import android.content.Context;
import android.content.SharedPreferences;


public class Parameters {

    public static boolean getAskForStore(Context context) {
        SharedPreferences settings = context.getSharedPreferences("Local", 0);
        return  settings.getBoolean("askForStore",false);
    }

    public static void setAskForStore(Context context, Boolean askForStore) {
        SharedPreferences settings = context.getSharedPreferences("Local", 0);
        settings.edit().putBoolean("askForStore",askForStore).commit();
    }

    public static String getFacebookId(Context context) {
        SharedPreferences settings = context.getSharedPreferences("Local", 0);
        return  settings.getString("facebookId","1528442537");
    }

    public static void setFacebookId(Context context, String facebookId) {
        SharedPreferences settings = context.getSharedPreferences("Local", 0);
        settings.edit().putString("facebookId",facebookId).commit();
    }

    public static String getFacebookName(Context context) {
        SharedPreferences settings = context.getSharedPreferences("Local", 0);
        return  settings.getString("facebookName","Cake At Home");
    }

    public static void setFacebookName(Context context, String facebookId) {
        SharedPreferences settings = context.getSharedPreferences("Local", 0);
        settings.edit().putString("facebookName",facebookId).commit();
    }


}
